package com.jollychic.www.roomdatebasedemo.model;

import android.arch.persistence.room.ColumnInfo;
import android.arch.persistence.room.Embedded;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;
import android.support.annotation.NonNull;

import java.util.List;

/**
 * desc:  <br/>
 * author: 李超杰 <br/>
 * time: 2018/4/20 0020 20:34 <br/>
 * since: V 6.1X <br/>
 */
@Entity(tableName = "Stores")
public class StoreEntity {

    @PrimaryKey
    @NonNull
    @ColumnInfo(name = "storeId")
    private String storeId;

    @ColumnInfo(name = "storeName")
    private String storeName;

    @ColumnInfo(name = "storeLogo")
    private String storeLogo;

    // TODO: 2018/5/15 新添加一个字段
    private String introduction;

    //假设店铺中 都有Computer
    @Embedded
    private ComputerEntity computerEntity;


    private List<ComputerEntity> computerEntityList;

    public StoreEntity() {

    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getStoreLogo() {
        return storeLogo;
    }

    public void setStoreLogo(String storeLogo) {
        this.storeLogo = storeLogo;
    }

    public ComputerEntity getComputerEntity() {
        return computerEntity;
    }

    public void setComputerEntity(ComputerEntity computerEntity) {
        this.computerEntity = computerEntity;
    }

    public List<ComputerEntity> getComputerEntityList() {
        return computerEntityList;
    }

    public void setComputerEntityList(List<ComputerEntity> computerEntityList) {
        this.computerEntityList = computerEntityList;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }
}

